package com.xhdx.pattern.command;

/**
 * 创建命令入口
 *
 */
public class Enter {
    private ICommand commandA;
    private ICommand commandB;

    public Enter(ICommand commandA, ICommand commandB) {
        this.commandA = commandA;
        this.commandB = commandB;
    }

    public void orderA() {
        commandA.exe();
    }

    public void orderB() {
        commandB.exe();
    }
}
